package net.wds.ssbus.modules.dbconfig.service.impl;

import net.wds.ssbus.common.utils.PageUtils;
import net.wds.ssbus.common.utils.Query;
import net.wds.ssbus.modules.dbconfig.dao.DbSourceSelectDao;
import net.wds.ssbus.modules.dbconfig.entity.DbSourceSelectEntity;
import net.wds.ssbus.modules.dbconfig.service.DbSourceSelectService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("dbSourceSelectService")
public class DbSourceSelectServiceImpl extends ServiceImpl<DbSourceSelectDao, DbSourceSelectEntity> implements DbSourceSelectService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DbSourceSelectEntity> page = this.page(
                new Query<DbSourceSelectEntity>().getPage(params),
                new QueryWrapper<DbSourceSelectEntity>()
        );

        return new PageUtils(page);
    }

}